#ifndef PROCESS_H
#define PROCESS_H

#include <QObject>

QT_BEGIN_NAMESPACE
class QProcess;
QT_END_NAMESPACE

class Process : public QObject
{
    Q_OBJECT
public:
    explicit Process(QObject *parent , const QString &address,
        const QString &username, const QString &password,
        const QString &port, const QString &localPort );

#if defined(Q_OS_WIN)
    void startPlink();
#endif
    void startSSH();
    void Kill();
    bool IsRunning();

signals:
public slots:

private:
    QProcess *process;
    bool running_;
    QString address_;
    QString username_;
    QString password_;
    QString port_;
    QString localPort_;
};

#endif // PROCESS_H
